package com.lucky.common.mapper;

import com.lucky.common.pojo.po.DictPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface DictMapper extends com.baomidou.mybatisplus.core.mapper.BaseMapper<DictPO> {

	@Select("select * from M_DD_DICDETAIL t where t.DICTYPECODE = #{typeCode} order by diccode")
	List<DictPO> queryList(@Param("typeCode")String typeCode);
	
	@Select("select * from M_DD_DICDETAIL t where t.DICTYPECODE = #{typeCode} and t.diccode=#{dicCode}")
	DictPO getOne(@Param("typeCode")String typeCode, @Param("dicCode")String dicCode);
	
}
